package top.lgd.pojo.entity.system;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * 系统用户表
 *
 * @author YYJ
 * @since 2023/12/15 9:53
 */

@Getter
@Setter
@TableName("system_user")
public class User extends LgdEntity {

    private static final long serialVersionUID = -7523829661969297088L;

    /**
     * 用户名
     */
    @Size(max = 16)
    private String username;

    /**
     * 用户昵称
     */
    @Size(max = 16)
    private String nickname;

    /**
     * 用户类型
     */
    @Size(max = 8)
    private String userType;

    /**
     * 手机号码
     */
    @Size(max = 11)
    private String mobile;

    /**
     * 邮箱
     */
    @Size(max = 32)
    private String email;

    /**
     * 头像地址
     */
    @Size(max = 64)
    private String avatar;

    /**
     * 密码
     */
    @Size(max = 128)
    private String password;

    /**
     * 最后登陆IP
     */
    @Size(max = 64)
    private String loginIp;

    /**
     * 最后登陆时间
     */
    private LocalDateTime loginTime;
}